package com.cuit.service.Impl;

import com.cuit.dao.impl.OrderDaoImpl;
import com.cuit.pojo.Order;
import com.cuit.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    OrderDaoImpl dao=new OrderDaoImpl();


    @Override
    public int queryByIDFromDOrder(String d_id, int day) {
        return dao.queryByIDFromDOrder(d_id,day);
    }

    @Override
    public int queryByIDFromOrder2(String d_id, int day) {
        return dao.queryByIDFromOrder2(d_id,day);
    }

    @Override
    public List<Order> queryByID(String id) {
        return dao.queryByID(id);
    }

    @Override
    public Order queryOneOrder(String p_id, String d_id, int day, String time) {
        return dao.queryOneOrder(p_id,d_id,day,time);
    }

    @Override
    public int addInfoToOrder(Order order) {
        return dao.addInfoToOrder(order);
    }

    @Override
    public int saveInfoToOrder2(String doctor_id, int day) {
        return dao.saveInfoToOrder2(doctor_id,day);
    }

    @Override
    public int deleteFromOrder1(String p_id, String d_id, String time, int day) {
        return dao.deleteFromOrder1(p_id,d_id,time,day);
    }

    @Override
    public int updateFromOrder2(String id, int day) {
        return dao.updateFromOrder2(id,day);
    }

    @Override
    public int saveNewInfoToOrder2(String doctor_id, int day) {
        return dao.saveNewInfoToOrder2(doctor_id,day);
    }
}
